import java.util.Arrays;
public class Test {
    public static void main(String[] args) {
        int[] arr = {1, 3, 2, 4, 2, 5, 7, 3};
        System.out.println(threeOdd(arr));
    }

    public static boolean threeOdd(int[] arr) {
        int cnt = 0;
        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 != 0) {
                cnt++;
                if(cnt == 3) {
                    return true;
                }
            }else {   //一遇到偶数就重置计数
                cnt = 0;
            }
        }
        return false;
    }
}
